<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>14.按需动态加载模块</title>
</head>

<body>
  <button>houdunren.com</button>
  <script type="module">
    document.querySelector("button").addEventListener('click', () => {
      import("./m14.js").then(({ site, url }) => {
        console.log(site, url);
      });

    });
  </script>
</body>

</html>